package com.zbkj.crmeb.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.PageParamRequest;
import com.github.pagehelper.PageInfo;
import com.zbkj.crmeb.store.model.StoreModuleSetUp;
import com.zbkj.crmeb.store.request.StoreModuleSetUpRequest;
import com.zbkj.crmeb.store.response.StoreModuleSetUpResponse;

import java.util.List;

/**
 * 模块设置接口
 */
public interface StoreModuleSetUpService extends IService<StoreModuleSetUp> {

    /**
     * 列表
     * @Description:
     * @author duyb
     * @return CommonResult<Object>
     * @Date: 2022-10-27
     */
    List<StoreModuleSetUpResponse> getList();

    /**
     * 分页查询
     * @Description:
     * @author duyb
     * @param @param [StoreModuleSetUpRequest PageParamRequest]
     * @return PageInfo<StoreModuleSetUpResponse>
     * @Date: 2022-10-27
     */
    PageInfo<StoreModuleSetUpResponse> pageEntity(StoreModuleSetUpRequest request, PageParamRequest pageParamRequest);
    
    /**
     * 通过主键查询
     * @Description:  
     * @author duyb
     * @param @param id
     * @return StoreModuleSetUpResponse
     * @Date: 2022-10-27
     */
    StoreModuleSetUpResponse getEntity(Integer id);
    
    /**
     * 保存
     * @Description:  
     * @author duyb
     * @param @param StoreBannerSetUpRequest
     * @return Boolean
     * @Date: 2022-10-27
     */
    Boolean saveEntity(StoreModuleSetUpRequest storeModuleSetUpRequest);

    /**
     * 启用/禁用
     * @Description:
     * @author duyb
     * @param @param id
     * @return Boolean
     * @Date: 2022-11-08
     */
    Boolean enabled(Integer id,Integer status);

    /**
     * 去除下架商品
     * @Description:
     * @author duyb
     * @param @param id
     * @Date: 2022-10-27
     */
    Boolean screenProduct(Integer id);


}
